#include "HufArc.h"
void strWrite (FILE * fileToWrite,char * buf, size_t len, unsigned int * ChkNum)
{
	//jmp_buf errorBuf;
	unsigned int rc = 0;
	if ((rc = fwrite (buf,sizeof(char),len,fileToWrite)) == len)
	{
		if (ChkNum)
			ChkNum[0] += (unsigned int) Crc32 (buf,len);
	} else {
		longjmp (errorBuf,WRITE_ERR2);
		return;
	}
}